var xHRObject = new XMLHttpRequest();

function getUserSets(divID, loggedInUsername) {
        
        xHRObject.open("GET", "ManageTrackAjaxServlet?getUserSets=1&userName="+encodeURIComponent(loggedInUsername);
    
    xHRObject.onreadystatechange = function() {
    	if (xHRObject.readyState == 4) {
    		if (xHRObject.status == 200) {
    			getData3(divID);
    		}
    	}
    };
    xHRObject.send(null);   
}

function getData3(divID)
{
	try{
        var serverResponse = xHRObject3.responseXML;
        
        var header = serverResponse.getElementsByTagName("set");
        
        var divComments = document.getElementById(divID);//this is the div
       
        
        divComments.innerHTML = "";
        for (i=0; i<header.length; i++) {
//            
        }
        
        
    }catch(e){}
    finally{//Clear the object and call the checkMessages function in 5 seconds
        xHRObject3.abort();
    }
}